#定义增加设备表单
from flask_wtf import Form
from wtforms import StringField,IntegerField,SubmitField,PasswordField,BooleanField
from wtforms.validators import Required,Length,Email

class AdminLoginForm(Form):
	email=StringField('邮件',validators=[Required(),Length(1,64),Email()])
	password=PasswordField('密码',validators=[Required()])
	remember_me=BooleanField('记住我的选择')
	submit=SubmitField('登录')

class AddDeviceForm(Form):
      device_name=StringField('设备名',validators=[Required()])
      operator=StringField('运营商',validators=[Required()])
      imei=IntegerField('IMEI',validators=[Required()])
      submit=SubmitField('添加设备')

class ModifyDeviceForm(Form):
      device_name=StringField('设备名',validators=[Required()])
      operator=StringField('运营商',validators=[Required()])
      imei=IntegerField('IMEI',validators=[Required()])
      submit=SubmitField('提交修改')
